package com.cloudkinto.service.orderoutput.vo;

import com.cloudkinto.entity.OrderOutputDo;

/**
 * Author Administrator
 *
 * @Des
 * @Version
 * @Date 2020/9/8
 */
public class OrderSkuComparator implements java.util.Comparator<OrderOutputDo> {
    @Override
    public int compare(OrderOutputDo o1, OrderOutputDo o2) {
        if (o1.getCommoditySku() == null || o2.getCommoditySku() == null) return 1;
        return o1.getCommoditySku().compareTo(o2.getCommoditySku());
    }
}
